<?php
namespace app\model;

class M_category
{
    //字段数据
    public static $fields=array();

    public static function getFields(){
        self::$fields["id"]=array(
            "type"=>"int",
            "require"=>"1",
        );
        self::$fields["name"]=array(
            "type"=>"str",
            "require"=>"1",
        );
        self::$fields["disabled"]=array(
            "type"=>"int",
        );
        self::$fields["fieldIndex"]=array(
            "type"=>"str",
        );
        self::$fields["thumb"]=array(
            "type"=>"str",
        );
        self::$fields["sort"]=array(
            "type"=>"int",
        );
        self::$fields["pid"]=array(
            "type"=>"int",
        );
        self::$fields["version"]=array(
            "type"=>"int",
        );
        self::$fields["dataType"]=array(
            "type"=>"str",
            "require"=>"1",
        );
        self::$fields["dataId"]=array(
            "type"=>"int",
            "require"=>"1",
        );
        self::$fields["catDir"]=array(
            "type"=>"str",
        );
        self::$fields["seo_title"]=array(
            "type"=>"str",
        );
        self::$fields["seo_keywords"]=array(
            "type"=>"str",
        );
        self::$fields["seo_description"]=array(
            "type"=>"str",
        );
        self::$fields["style"]=array(
            "type"=>"str",
        );
        self::$fields["linkurl"]=array(
            "type"=>"str",
        );
        self::$fields["level"]=array(
            "type"=>"int",
        );
        self::$fields["item"]=array(
            "type"=>"int",
        );
        self::$fields["parent_count"]=array(
            "type"=>"int",
        );
        self::$fields["child_count"]=array(
            "type"=>"int",
        );
        self::$fields["template_list"]=array(
            "type"=>"str",
        );
        self::$fields["template_content"]=array(
            "type"=>"str",
        );
        self::$fields["arr_parent_id"]=array(
            "type"=>"str",
        );
        self::$fields["child"]=array(
            "type"=>"int",
        );
        self::$fields["arr_child_id"]=array(
            "type"=>"str",
        );
        return self::$fields;
    }
}